package com.yyge.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.conditions.query.QueryChainWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yyge.entity.Employee;
import com.yyge.service.EmployeeService;
import com.yyge.mapper.EmployeeMapper;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【employee】的数据库操作Service实现
* @createDate 2023-06-12 16:16:35
*/
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee>
    implements EmployeeService{

    @Override
    public Employee findByName(String loginName){
        QueryWrapper<Employee> wrapper=new QueryWrapper<Employee>().eq("login_name",loginName);
      return  this.getOne(wrapper);
    }
}




